# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=vo-amrwbenc
pkgver=0.1.3
pkgrel=0
pkgdesc="VisualOn AMR-WB encoder from Android"
url="https://sourceforge.net/projects/opencore-amr"
arch="all"
license="Apache-2.0"
subpackages="$pkgname-static $pkgname-dev"
source="https://netcologne.dl.sourceforge.net/project/opencore-amr/vo-amrwbenc/vo-amrwbenc-$pkgver.tar.gz"

prepare() {
	default_prepare

	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5f132f798f00ec2c0619700ab1ce456897792b45631af4b538c866636af9c9de5600af5f79040c41c3dc69c17cf4be7032139a9518a46a4276431e091f3dd6a9  vo-amrwbenc-0.1.3.tar.gz"
